<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><{$site_title}>管理中心</title>
<{include file="js.html"}>

</head>

<body>
<div class="box">
<div style="background:url(images/mainbj.jpg) repeat-x; line-height:31px; height:31px;">
<table border="0" cellpadding="0" cellspacing="0">
<tr><td width="41" align="center">
<img src="images/biao1.jpg" /></td>
<td><strong>当前位置</strong>:订单管理 &gt; 订单列表</td>
</tr></table>
</div>
<form action="" method="post"  enctype='multipart/form-data'>
<table width="849" cellpadding="0" cellspacing="0" class="lefttab">
<tr><td colspan="11"><div style="height:26px; text-align:left; line-height:26px; background:url(images/xbj1.jpg) repeat-x; border:1px solid #e9f5fa;font-weight:bold;">&nbsp;&nbsp;订单管理</div>
</td></tr>
<tr style="background:#dceff6;" id="top">
  <td><strong>单号</strong></td>
  <td><strong>商品名称</strong></td>
  <td><strong>购买用户</strong></td>
  <td><strong>交易数量</strong></td>
  <td><strong>交易金额</strong></td>
  <td><strong>支付方式</strong></td>
  <td><strong>支付状态</strong></td>
  <td><strong>交易状态</strong></td>
  <td><strong>下单时间</strong></td>
 <!--  <td><strong>交易成功时间</strong></td> -->
  <td><strong>操作</strong></td>
</tr>
<{foreach item=row from=$res}>
<tr line_id="<{$row.id}>">
		<td ><{$row.id}></td>
	  <td value_id="<{$row.id}>"><{$row.product_name}></td>
	  <td value_id="<{$row.id}>"><{$row.userName}></td>
	  <td value_id="<{$row.id}>"><{$row.amount}></td>
	  <td value_id="<{$row.id}>"><{$row.pay_money}></td>
	      <!--支付方式-->
		  <td value_id="<{$row.payStyle}>"><{$row.payStyle}></td>
		  <!--支付状态--> 
		  <td value_id="<{$row.payStatus}>"><{$row.payStatus}></td>
		  <!--交易状态-->
		  <td value_id="<{$row.tradingStatus}>"><{$row.tradingStatus}></td>
	  <td value_id="<{$row.id}>">&nbsp;<{$row.order_date}></td>
	  <!-- <td value_id="<{$row.id}>"><{$row.trade_success_date}></td> -->
	  <td class="f-14 td-manage">
	 		<!-- <a style="color:blue"onclick="delSingle('<{$row.id}>','<{$_basename}>?action=del','')" href="javascript:;">删除</a> -->
	 		<a style="color:blue" href="order_info.php?id=<{$row.id}>">详情</a>
	 		<{if $row.trading_status == '4'}>
			<a style="color:blue" href="order_refund_check.php?id=<{$row.id}>">退款审核</a>
			<{/if}>

			<{if $row.trading_status == '5' && $row.pay_status == '2' && $row.pay_style == '2'}>
			<a style="color:blue" href="order_refund.php?id=<{$row.id}>">退款</a>
			<{/if}>
			<{if $row.trading_status == '5' && $row.pay_status == '2' && $row.pay_style == '1'}>
			<a style="color:blue" href="order_refund_wx.php?id=<{$row.id}>">退款</a>
			<{/if}>
	 </td>
</tr>
<{/foreach}>
<tr id="addTr">
 
</tr>
</table>
</form>
  <div class="fenye" >
    <p>&nbsp;</p>
    <p >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<{$page}>&nbsp;</p>
  </div>

</div>
</body>
</html>